<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Editor GUI Table: GUIExtensions.GUITableState Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Logo_rounded.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Editor GUI Table
   </div>
   <div id="projectbrief">A plugin to allow programmers to easily create customizable tables in Unity Editor</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_g_u_i_extensions_1_1_g_u_i_table_state.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_g_u_i_extensions_1_1_g_u_i_table_state-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GUIExtensions.GUITableState Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The current state of the <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table.html" title="Main Class of the Table Plugin. This contains static functions to draw a table, from the most basic t...">GUITable</a>. This has to be used the same way state parameters are used in Unity GUI functions, like the scroll position in BeginScrollView. It has to be passed from one GUI frame to another by keeping a reference in your calling code.  
 <a href="class_g_u_i_extensions_1_1_g_u_i_table_state.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa1c174fc584bf84ed57022fc04171298"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html#aa1c174fc584bf84ed57022fc04171298">GUITableState</a> (string prefsKey)</td></tr>
<tr class="memdesc:aa1c174fc584bf84ed57022fc04171298"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html" title="The current state of the GUITable. This has to be used the same way state parameters are used in Unit...">GUIExtensions.GUITableState</a> with a key to save it in EditorPrefs. This constructor can't be used in ScriptableObject's constructor or in the property's declaration, because it uses the EditorPrefs. Use it in OnEnable or Awake instead.  <a href="#aa1c174fc584bf84ed57022fc04171298">More...</a><br /></td></tr>
<tr class="separator:aa1c174fc584bf84ed57022fc04171298"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cabd40983f3ded2a1b8aaf2ffd6ecf5"><td class="memItemLeft" align="right" valign="top"><a id="a2cabd40983f3ded2a1b8aaf2ffd6ecf5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Save</b> ()</td></tr>
<tr class="separator:a2cabd40983f3ded2a1b8aaf2ffd6ecf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a15b8622c85e889c4ae225537684a9970"><td class="memItemLeft" align="right" valign="top"><a id="a15b8622c85e889c4ae225537684a9970"></a>
static <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Load</b> (string prefsKey)</td></tr>
<tr class="separator:a15b8622c85e889c4ae225537684a9970"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a8f3a30d048d0f19c1cb11451be849c24"><td class="memItemLeft" align="right" valign="top"><a id="a8f3a30d048d0f19c1cb11451be849c24"></a>
Vector2&#160;</td><td class="memItemRight" valign="bottom"><b>scrollPos</b></td></tr>
<tr class="separator:a8f3a30d048d0f19c1cb11451be849c24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28f1555aaef55d4ce9ea3b90d35c780c"><td class="memItemLeft" align="right" valign="top"><a id="a28f1555aaef55d4ce9ea3b90d35c780c"></a>
Vector2&#160;</td><td class="memItemRight" valign="bottom"><b>scrollPosHoriz</b></td></tr>
<tr class="separator:a28f1555aaef55d4ce9ea3b90d35c780c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e062485d693d9d8204a8d868221f6a9"><td class="memItemLeft" align="right" valign="top"><a id="a8e062485d693d9d8204a8d868221f6a9"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>sortByColumnIndex</b> = -1</td></tr>
<tr class="separator:a8e062485d693d9d8204a8d868221f6a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0dd82f8c71eac659a8774d61fd4fbfd"><td class="memItemLeft" align="right" valign="top"><a id="aa0dd82f8c71eac659a8774d61fd4fbfd"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>sortIncreasing</b></td></tr>
<tr class="separator:aa0dd82f8c71eac659a8774d61fd4fbfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07122241ee02f8d8c31f0908d67f1bd5"><td class="memItemLeft" align="right" valign="top"><a id="a07122241ee02f8d8c31f0908d67f1bd5"></a>
List&lt; float &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>columnSizes</b> = new List&lt;float&gt; ()</td></tr>
<tr class="separator:a07122241ee02f8d8c31f0908d67f1bd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2612ab7ea11c0a56c961dc4f93470e10"><td class="memItemLeft" align="right" valign="top"><a id="a2612ab7ea11c0a56c961dc4f93470e10"></a>
List&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>columnVisible</b> = new List&lt;bool&gt; ()</td></tr>
<tr class="separator:a2612ab7ea11c0a56c961dc4f93470e10"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The current state of the <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table.html" title="Main Class of the Table Plugin. This contains static functions to draw a table, from the most basic t...">GUITable</a>. This has to be used the same way state parameters are used in Unity GUI functions, like the scroll position in BeginScrollView. It has to be passed from one GUI frame to another by keeping a reference in your calling code. </p>
<div class="fragment"><div class="line">GUITableState tableState;</div><div class="line"><span class="keywordtype">void</span> OnGUI ()</div><div class="line">{</div><div class="line">    tableState = GUITable.DrawTable(collectionProperty, tableState);</div><div class="line">}</div></div><!-- fragment --> </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aa1c174fc584bf84ed57022fc04171298"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1c174fc584bf84ed57022fc04171298">&#9670;&nbsp;</a></span>GUITableState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GUIExtensions.GUITableState.GUITableState </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>prefsKey</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes a <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html" title="The current state of the GUITable. This has to be used the same way state parameters are used in Unit...">GUIExtensions.GUITableState</a> with a key to save it in EditorPrefs. This constructor can't be used in ScriptableObject's constructor or in the property's declaration, because it uses the EditorPrefs. Use it in OnEnable or Awake instead. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">prefsKey</td><td>Prefs key.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/Users/jquentin/Documents/Projects/EditorGUITable/Assets/GUITable/Editor/GUITableState.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_g_u_i_extensions.html">GUIExtensions</a></li><li class="navelem"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
